package com.ruoyi.health.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的家人对象 family
 * 
 * @author dalian
 * @date 2023-08-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Family extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家人id */
    private Long id;

    /** 家人姓名 */
    @Excel(name = "家人姓名")
    private String realname;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 身份证照片 */
    @Excel(name = "身份证照片")
    private String idImg;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idNum;

    /** 与本人关系 */
    @Excel(name = "与本人关系")
    private String relationship;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 关联用户id */
    @Excel(name = "关联用户id")
    private Long userId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("realname", getRealname())
            .append("avatarUrl", getAvatarUrl())
            .append("idImg", getIdImg())
            .append("idNum", getIdNum())
            .append("relationship", getRelationship())
            .append("address", getAddress())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .toString();
    }
}
